package com.demo1.repository;

import com.demo1.model.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepository {

    @Bean
    public User intoByteDance() {
        User user = new User();
        user.setId(1);
        user.setName("恭喜您，成功入职字节跳动!");
        return user;
    }

    @Bean
    public User intoBaidu() {
        User user = new User();
        user.setId(2);
        user.setName("恭喜您，成功入职百度!");
        return user;
    }

    @Bean
    public User intoDajiang() {
        User user = new User();
        user.setId(3);
        user.setName("恭喜您，成功入职大疆!");
        return user;
    }

}
